#!/bin/bash
if cat app/src/main/java/com/handwriting/makefont/MainServerConstants.java | grep 'public static final String URL_SERVER_LINUX_ROOT = "https://hwdev.xiezixiansheng.com/";'>/dev/null
then
    sed -i -e 's|public static final String URL_SERVER_LINUX_ROOT = "https://hwdev.xiezixiansheng.com/"|public static final String URL_SERVER_LINUX_ROOT = "https://hw.xiezixiansheng.com/"|' ./app/src/main/java/com/handwriting/makefont/MainServerConstants.java
	echo "test success"
else
        echo "yes"
fi
